<?php
use yii\widgets\ActiveForm;
?>

    <?php  ActiveForm::begin(['enableAjaxValidation' => false,'enableClientValidation' => true,'options'=>['class'=>'form-validate']]); ?>
    <table class=" yx-course-info">
        <tr>
            <td align="center">付款状态：</td>
            <td ><?=$model->pay_status == 1 ?'已付款':'未付款'?></td>
        </tr>
        <tr>
            <td align="center">现金付款：</td>
            <td ><?=$model->cash_money?></td>
        </tr>
        <tr>
            <td align="center">奖学金付款：</td>
            <td ><?=$model->scholarship_money?></td>
        </tr>
        <tr>
            <td align="center">是否退款：</td>
            <td ><?=\yii\helpers\Html::radioList('is_return',0,[0=>'否',1=>'是'])?></td>
        </tr>
    </table>
       <?=\yii\helpers\Html::submitButton('submit',['id'=>'dosubmit','style'=>'display:none']);?>
    <?php  ActiveForm::end(); ?>
<?php
$js =<<<JS
if($model->pay_status == 0){
  $('input[type="radio"]').attr('disabled','disabled');
}

JS;
\Yii::$app->view->registerJs($js);
?>